﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTServicesCliente.Dominio;
using System.ServiceModel.Web;

namespace RESTServicesCliente
{
    [ServiceContract]
    public interface IClientes
    {

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        Cliente CrearClientes(Cliente clienteACrear);
        
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Clientes/{dni}", ResponseFormat = WebMessageFormat.Json)]
        Cliente ObtenerClientes(string dni);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        Cliente ModificarClientes(Cliente clienteAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        void EliminarClientes(Cliente clienteAEliminar);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        List<Cliente> ListarClientes();
    }
}
